<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title> test </title>
</head>
<body>
<h4>发送GET请求</h4>
<a href="/user/1">GET</a>

<h4>发送POST请求</h4>
<form action="/user/1" method="post">
    <input type="submit" value="POST" />
</form>

<!-- 发送PUT和DELETE请求时，需要添加一个隐藏域 -->
<h4>发送PUT请求</h4>
<form action="/user/1" method="post">
    <input type="hidden" name="_method" value="PUT" />
    <input type="submit" value="PUT" />
</form>

<h4>发送DELETE请求</h4>
<form action="/user/1" method="post">
    <input type="hidden" name="_method" value="DELETE" />
    <input type="submit" value="DELETE" />
</form>
</body>
</html>
